Skip to content

fix(checkers): cover identity columns in column_value_at_risk + seque…#21

Merged
pirr merged 1 commit into
mainfrom
fix/checkers-identity-coverage
Apr 30, 2026
Merged

fix(checkers): cover identity columns in column_value_at_risk + seque…#21
pirr merged 1 commit into
mainfrom
fix/checkers-identity-coverage

Conversation

@pirr

@pirr pirr commented Apr 30, 2026

Copy link
Copy Markdown
Owner

…nce_drift

Both checkers filtered pg_depend.deptype = 'a', which only matches SERIAL/bigserial and manual ALTER SEQUENCE ... OWNED BY. Identity columns (GENERATED ... AS IDENTITY) use 'i' on PG10–11 and 'I' on PG12+, so any team that migrated to identity columns — the modern recommended replacement for SERIAL — was silently invisible to both rules.

Widen the filter to IN ('a', 'i', 'I'). Add positive tests for both GENERATED BY DEFAULT and GENERATED ALWAYS in column_value_at_risk, and a drift test for identity columns in sequence_drift; all run against the full PG 10/13/15/17 matrix.

…nce_drift

Both checkers filtered pg_depend.deptype = 'a', which only matches
SERIAL/bigserial and manual ALTER SEQUENCE ... OWNED BY. Identity
columns (GENERATED ... AS IDENTITY) use 'i' on PG10–11 and 'I' on PG12+,
so any team that migrated to identity columns — the modern recommended
replacement for SERIAL — was silently invisible to both rules.

Widen the filter to IN ('a', 'i', 'I'). Add positive tests for both
GENERATED BY DEFAULT and GENERATED ALWAYS in column_value_at_risk, and
a drift test for identity columns in sequence_drift; all run against
the full PG 10/13/15/17 matrix.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@pirr pirr self-assigned this Apr 30, 2026
@pirr pirr added enhancement New feature or request checkers labels Apr 30, 2026
@pirr pirr merged commit 70f92eb into main Apr 30, 2026
2 checks passed
@pirr pirr deleted the fix/checkers-identity-coverage branch April 30, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

checkers enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant